.class public Llt/noframe/gpsfarmguide/models/LineModel;
.super Ljava/lang/Object;
.source "LineModel.java"

# interfaces
.implements Llt/noframe/gpsfarmguide/interfaces/Shape;


# instance fields
.field private caretaker:Llt/noframe/gpsfarmguide/undo/Caretaker;

.field private markers:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Lcom/google/android/gms/maps/model/Marker;",
            ">;"
        }
    .end annotation
.end field

.field private originator:Llt/noframe/gpsfarmguide/undo/Originator;

.field private points:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Lcom/google/android/gms/maps/model/LatLng;",
            ">;"
        }
    .end annotation
.end field

.field private polyline:Lcom/google/android/gms/maps/model/Polyline;


# direct methods
.method public constructor <init>()V
    .locals 1

    .line 34
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 35
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Llt/noframe/gpsfarmguide/models/LineModel;->points:Ljava/util/List;

    .line 36
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Llt/noframe/gpsfarmguide/models/LineModel;->markers:Ljava/util/List;

    .line 37
    new-instance v0, Llt/noframe/gpsfarmguide/undo/Caretaker;

    invoke-direct {v0}, Llt/noframe/gpsfarmguide/undo/Caretaker;-><init>()V

    iput-object v0, p0, Llt/noframe/gpsfarmguide/models/LineModel;->caretaker:Llt/noframe/gpsfarmguide/undo/Caretaker;

    .line 38
    new-instance v0, Llt/noframe/gpsfarmguide/undo/Originator;

    invoke-direct {v0}, Llt/noframe/gpsfarmguide/undo/Originator;-><init>()V

    iput-object v0, p0, Llt/noframe/gpsfarmguide/models/LineModel;->originator:Llt/noframe/gpsfarmguide/undo/Originator;

    return-void
.end method

.method public constructor <init>(Ljava/util/List;)V
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Lcom/google/android/gms/maps/model/LatLng;",
            ">;)V"
        }
    .end annotation

    .line 41
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 42
    iput-object p1, p0, Llt/noframe/gpsfarmguide/models/LineModel;->points:Ljava/util/List;

    .line 43
    invoke-virtual {p0}, Llt/noframe/gpsfarmguide/models/LineModel;->redraw()V

    const/4 v0, 0x0

    .line 44
    invoke-static {p1, v0}, Llt/noframe/gpsfarmguide/utils/Drawing;->addMarkers(Ljava/util/List;Z)Ljava/util/List;

    move-result-object p1

    iput-object p1, p0, Llt/noframe/gpsfarmguide/models/LineModel;->markers:Ljava/util/List;

    .line 45
    new-instance p1, Llt/noframe/gpsfarmguide/undo/Caretaker;

    invoke-direct {p1}, Llt/noframe/gpsfarmguide/undo/Caretaker;-><init>()V

    iput-object p1, p0, Llt/noframe/gpsfarmguide/models/LineModel;->caretaker:Llt/noframe/gpsfarmguide/undo/Caretaker;

    .line 46
    new-instance p1, Llt/noframe/gpsfarmguide/undo/Originator;

    invoke-direct {p1}, Llt/noframe/gpsfarmguide/undo/Originator;-><init>()V

    iput-object p1, p0, Llt/noframe/gpsfarmguide/models/LineModel;->originator:Llt/noframe/gpsfarmguide/undo/Originator;

    return-void
.end method


# virtual methods
.method public addMarkers()V
    .locals 2

    .line 165
    iget-object v0, p0, Llt/noframe/gpsfarmguide/models/LineModel;->points:Ljava/util/List;

    const/4 v1, 0x0

    invoke-static {v0, v1}, Llt/noframe/gpsfarmguide/utils/Drawing;->addMarkers(Ljava/util/List;Z)Ljava/util/List;

    move-result-object v0

    iput-object v0, p0, Llt/noframe/gpsfarmguide/models/LineModel;->markers:Ljava/util/List;

    return-void
.end method

.method public addPoint(Lcom/google/android/gms/maps/model/LatLng;)V
    .locals 1

    .line 51
    invoke-virtual {p0}, Llt/noframe/gpsfarmguide/models/LineModel;->saveState()V

    .line 52
    iget-object v0, p0, Llt/noframe/gpsfarmguide/models/LineModel;->polyline:Lcom/google/android/gms/maps/model/Polyline;

    if-eqz v0, :cond_0

    .line 53
    invoke-virtual {v0}, Lcom/google/android/gms/maps/model/Polyline;->remove()V

    .line 54
    :cond_0
    iget-object v0, p0, Llt/noframe/gpsfarmguide/models/LineModel;->points:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 55
    iget-object v0, p0, Llt/noframe/gpsfarmguide/models/LineModel;->markers:Ljava/util/List;

    invoke-static {p1}, Llt/noframe/gpsfarmguide/utils/Drawing;->addMarker(Lcom/google/android/gms/maps/model/LatLng;)Lcom/google/android/gms/maps/model/Marker;

    move-result-object p1

    invoke-interface {v0, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 56
    invoke-static {}, Llt/noframe/gpsfarmguide/utils/Calculations;->getInstance()Llt/noframe/gpsfarmguide/utils/Calculations;

    move-result-object p1

    invoke-virtual {p1}, Llt/noframe/gpsfarmguide/utils/Calculations;->doDistanceCalculations()V

    .line 57
    iget-object p1, p0, Llt/noframe/gpsfarmguide/models/LineModel;->points:Ljava/util/List;

    invoke-static {p1}, Llt/noframe/gpsfarmguide/utils/Drawing;->drawPolyline(Ljava/util/List;)Lcom/google/android/gms/maps/model/Polyline;

    move-result-object p1

    iput-object p1, p0, Llt/noframe/gpsfarmguide/models/LineModel;->polyline:Lcom/google/android/gms/maps/model/Polyline;

    return-void
.end method

.method public deletePoint(Lcom/google/android/gms/maps/model/Marker;)V
    .locals 2

    .line 92
    invoke-virtual {p0}, Llt/noframe/gpsfarmguide/models/LineModel;->saveState()V

    .line 93
    iget-object v0, p0, Llt/noframe/gpsfarmguide/models/LineModel;->markers:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->remove(Ljava/lang/Object;)Z

    .line 94
    iget-object v0, p0, Llt/noframe/gpsfarmguide/models/LineModel;->points:Ljava/util/List;

    invoke-virtual {p1}, Lcom/google/android/gms/maps/model/Marker;->getPosition()Lcom/google/android/gms/maps/model/LatLng;

    move-result-object v1

    invoke-interface {v0, v1}, Ljava/util/List;->remove(Ljava/lang/Object;)Z

    .line 95
    invoke-virtual {p1}, Lcom/google/android/gms/maps/model/Marker;->remove()V

    .line 96
    iget-object p1, p0, Llt/noframe/gpsfarmguide/models/LineModel;->polyline:Lcom/google/android/gms/maps/model/Polyline;

    invoke-virtual {p1}, Lcom/google/android/gms/maps/model/Polyline;->remove()V

    .line 97
    iget-object p1, p0, Llt/noframe/gpsfarmguide/models/LineModel;->points:Ljava/util/List;

    invoke-static {p1}, Llt/noframe/gpsfarmguide/utils/Drawing;->drawPolyline(Ljava/util/List;)Lcom/google/android/gms/maps/model/Polyline;

    move-result-object p1

    iput-object p1, p0, Llt/noframe/gpsfarmguide/models/LineModel;->polyline:Lcom/google/android/gms/maps/model/Polyline;

    .line 98
    invoke-static {}, Llt/noframe/gpsfarmguide/utils/Calculations;->getInstance()Llt/noframe/gpsfarmguide/utils/Calculations;

    move-result-object p1

    invoke-virtual {p1}, Llt/noframe/gpsfarmguide/utils/Calculations;->doDistanceCalculations()V

    return-void
.end method

.method public doCalculations()V
    .locals 1

    .line 154
    invoke-static {}, Llt/noframe/gpsfarmguide/utils/Calculations;->getInstance()Llt/noframe/gpsfarmguide/utils/Calculations;

    move-result-object v0

    invoke-virtual {v0}, Llt/noframe/gpsfarmguide/utils/Calculations;->doDistanceCalculations()V

    return-void
.end method

.method public draw()V
    .locals 1

    .line 144
    iget-object v0, p0, Llt/noframe/gpsfarmguide/models/LineModel;->points:Ljava/util/List;

    invoke-static {v0}, Llt/noframe/gpsfarmguide/utils/Drawing;->drawPolyline(Ljava/util/List;)Lcom/google/android/gms/maps/model/Polyline;

    move-result-object v0

    iput-object v0, p0, Llt/noframe/gpsfarmguide/models/LineModel;->polyline:Lcom/google/android/gms/maps/model/Polyline;

    return-void
.end method

.method public getMarkers()Ljava/util/List;
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/List<",
            "Lcom/google/android/gms/maps/model/Marker;",
            ">;"
        }
    .end annotation

    .line 132
    iget-object v0, p0, Llt/noframe/gpsfarmguide/models/LineModel;->markers:Ljava/util/List;

    return-object v0
.end method

.method public getPoints()Ljava/util/List;
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/List<",
            "Lcom/google/android/gms/maps/model/LatLng;",
            ">;"
        }
    .end annotation

    .line 122
    iget-object v0, p0, Llt/noframe/gpsfarmguide/models/LineModel;->points:Ljava/util/List;

    return-object v0
.end method

.method public getType()I
    .locals 1

    const/4 v0, 0x1

    return v0
.end method

.method public getWkt()Ljava/lang/String;
    .locals 1

    .line 191
    iget-object v0, p0, Llt/noframe/gpsfarmguide/models/LineModel;->points:Ljava/util/List;

    invoke-static {v0}, Llt/noframe/gpsfarmguide/utils/Utils;->linePoints2WKT(Ljava/util/List;)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public markMeasure()V
    .locals 2

    .line 78
    iget-object v0, p0, Llt/noframe/gpsfarmguide/models/LineModel;->polyline:Lcom/google/android/gms/maps/model/Polyline;

    const/high16 v1, 0x40a00000    # 5.0f

    invoke-virtual {v0, v1}, Lcom/google/android/gms/maps/model/Polyline;->setWidth(F)V

    return-void
.end method

.method public redraw()V
    .locals 1

    .line 137
    iget-object v0, p0, Llt/noframe/gpsfarmguide/models/LineModel;->polyline:Lcom/google/android/gms/maps/model/Polyline;

    if-eqz v0, :cond_0

    .line 138
    invoke-virtual {v0}, Lcom/google/android/gms/maps/model/Polyline;->remove()V

    .line 139
    :cond_0
    iget-object v0, p0, Llt/noframe/gpsfarmguide/models/LineModel;->points:Ljava/util/List;

    invoke-static {v0}, Llt/noframe/gpsfarmguide/utils/Drawing;->drawPolyline(Ljava/util/List;)Lcom/google/android/gms/maps/model/Polyline;

    move-result-object v0

    iput-object v0, p0, Llt/noframe/gpsfarmguide/models/LineModel;->polyline:Lcom/google/android/gms/maps/model/Polyline;

    return-void
.end method

.method public remove()V
    .locals 2

    .line 62
    iget-object v0, p0, Llt/noframe/gpsfarmguide/models/LineModel;->polyline:Lcom/google/android/gms/maps/model/Polyline;

    if-eqz v0, :cond_0

    .line 63
    invoke-virtual {v0}, Lcom/google/android/gms/maps/model/Polyline;->remove()V

    .line 64
    :cond_0
    invoke-virtual {p0}, Llt/noframe/gpsfarmguide/models/LineModel;->removeMarkers()V

    .line 65
    invoke-static {}, Llt/noframe/gpsfarmguide/Data;->getInstance()Llt/noframe/gpsfarmguide/Data;

    move-result-object v0

    invoke-virtual {v0}, Llt/noframe/gpsfarmguide/Data;->getDistances()Ljava/util/List;

    move-result-object v0

    invoke-static {}, Llt/noframe/gpsfarmguide/Data;->getInstance()Llt/noframe/gpsfarmguide/Data;

    move-result-object v1

    invoke-virtual {v1}, Llt/noframe/gpsfarmguide/Data;->getCurrent_measuring()Llt/noframe/gpsfarmguide/models/MeasuringModel;

    move-result-object v1

    invoke-interface {v0, v1}, Ljava/util/List;->remove(Ljava/lang/Object;)Z

    return-void
.end method

.method public removeMarkers()V
    .locals 2

    .line 70
    iget-object v0, p0, Llt/noframe/gpsfarmguide/models/LineModel;->markers:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v0

    :goto_0
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    if-eqz v1, :cond_0

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/google/android/gms/maps/model/Marker;

    .line 71
    invoke-virtual {v1}, Lcom/google/android/gms/maps/model/Marker;->remove()V

    goto :goto_0

    .line 72
    :cond_0
    iget-object v0, p0, Llt/noframe/gpsfarmguide/models/LineModel;->markers:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->clear()V

    return-void
.end method

.method public restoreInitialState()V
    .locals 2

    .line 172
    iget-object v0, p0, Llt/noframe/gpsfarmguide/models/LineModel;->caretaker:Llt/noframe/gpsfarmguide/undo/Caretaker;

    invoke-virtual {v0}, Llt/noframe/gpsfarmguide/undo/Caretaker;->getSavedStatesCount()I

    move-result v0

    if-eqz v0, :cond_1

    .line 173
    iget-object v0, p0, Llt/noframe/gpsfarmguide/models/LineModel;->originator:Llt/noframe/gpsfarmguide/undo/Originator;

    iget-object v1, p0, Llt/noframe/gpsfarmguide/models/LineModel;->caretaker:Llt/noframe/gpsfarmguide/undo/Caretaker;

    invoke-virtual {v1}, Llt/noframe/gpsfarmguide/undo/Caretaker;->getFirstMemento()Llt/noframe/gpsfarmguide/undo/AbstractMemento;

    move-result-object v1

    invoke-virtual {v0, v1}, Llt/noframe/gpsfarmguide/undo/Originator;->restoreFromMemento(Llt/noframe/gpsfarmguide/undo/AbstractMemento;)V

    .line 174
    iget-object v0, p0, Llt/noframe/gpsfarmguide/models/LineModel;->polyline:Lcom/google/android/gms/maps/model/Polyline;

    if-eqz v0, :cond_0

    .line 175
    invoke-virtual {v0}, Lcom/google/android/gms/maps/model/Polyline;->remove()V

    .line 176
    :cond_0
    invoke-virtual {p0}, Llt/noframe/gpsfarmguide/models/LineModel;->removeMarkers()V

    .line 177
    iget-object v0, p0, Llt/noframe/gpsfarmguide/models/LineModel;->originator:Llt/noframe/gpsfarmguide/undo/Originator;

    invoke-virtual {v0}, Llt/noframe/gpsfarmguide/undo/Originator;->getState()Ljava/util/List;

    move-result-object v0

    iput-object v0, p0, Llt/noframe/gpsfarmguide/models/LineModel;->points:Ljava/util/List;

    .line 178
    iget-object v0, p0, Llt/noframe/gpsfarmguide/models/LineModel;->points:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-lez v0, :cond_1

    .line 179
    iget-object v0, p0, Llt/noframe/gpsfarmguide/models/LineModel;->points:Ljava/util/List;

    invoke-static {v0}, Llt/noframe/gpsfarmguide/utils/Drawing;->drawPolyline(Ljava/util/List;)Lcom/google/android/gms/maps/model/Polyline;

    move-result-object v0

    iput-object v0, p0, Llt/noframe/gpsfarmguide/models/LineModel;->polyline:Lcom/google/android/gms/maps/model/Polyline;

    :cond_1
    return-void
.end method

.method public saveState()V
    .locals 2

    .line 159
    iget-object v0, p0, Llt/noframe/gpsfarmguide/models/LineModel;->originator:Llt/noframe/gpsfarmguide/undo/Originator;

    iget-object v1, p0, Llt/noframe/gpsfarmguide/models/LineModel;->points:Ljava/util/List;

    invoke-virtual {v0, v1}, Llt/noframe/gpsfarmguide/undo/Originator;->setState(Ljava/util/List;)V

    .line 160
    iget-object v0, p0, Llt/noframe/gpsfarmguide/models/LineModel;->caretaker:Llt/noframe/gpsfarmguide/undo/Caretaker;

    iget-object v1, p0, Llt/noframe/gpsfarmguide/models/LineModel;->originator:Llt/noframe/gpsfarmguide/undo/Originator;

    invoke-virtual {v1}, Llt/noframe/gpsfarmguide/undo/Originator;->saveToMemento()Llt/noframe/gpsfarmguide/undo/Memento;

    move-result-object v1

    invoke-virtual {v0, v1}, Llt/noframe/gpsfarmguide/undo/Caretaker;->add(Llt/noframe/gpsfarmguide/undo/Memento;)V

    return-void
.end method

.method public setColor(I)V
    .locals 1

    .line 149
    iget-object v0, p0, Llt/noframe/gpsfarmguide/models/LineModel;->polyline:Lcom/google/android/gms/maps/model/Polyline;

    invoke-virtual {v0, p1}, Lcom/google/android/gms/maps/model/Polyline;->setColor(I)V

    return-void
.end method

.method public setForEditing()V
    .locals 2

    .line 196
    invoke-virtual {p0}, Llt/noframe/gpsfarmguide/models/LineModel;->addMarkers()V

    .line 197
    invoke-virtual {p0}, Llt/noframe/gpsfarmguide/models/LineModel;->unmarkMeasure()V

    .line 198
    invoke-static {}, Llt/noframe/gpsfarmguide/Data;->getInstance()Llt/noframe/gpsfarmguide/Data;

    move-result-object v0

    invoke-virtual {v0}, Llt/noframe/gpsfarmguide/Data;->getMapStatesController()Llt/noframe/gpsfarmguide/states/map_states/MapStatesController;

    move-result-object v0

    new-instance v1, Llt/noframe/gpsfarmguide/states/map_states/DistanceDrawingState;

    invoke-direct {v1}, Llt/noframe/gpsfarmguide/states/map_states/DistanceDrawingState;-><init>()V

    invoke-virtual {v0, v1}, Llt/noframe/gpsfarmguide/states/map_states/MapStatesController;->setCurrentState(Llt/noframe/gpsfarmguide/states/map_states/MapState;)V

    .line 199
    iget-object v0, p0, Llt/noframe/gpsfarmguide/models/LineModel;->caretaker:Llt/noframe/gpsfarmguide/undo/Caretaker;

    invoke-virtual {v0}, Llt/noframe/gpsfarmguide/undo/Caretaker;->clear()V

    .line 200
    invoke-virtual {p0}, Llt/noframe/gpsfarmguide/models/LineModel;->saveState()V

    .line 201
    invoke-static {}, Llt/noframe/gpsfarmguide/utils/Calculations;->getInstance()Llt/noframe/gpsfarmguide/utils/Calculations;

    move-result-object v0

    invoke-static {}, Llt/noframe/gpsfarmguide/App;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-virtual {v0, v1}, Llt/noframe/gpsfarmguide/utils/Calculations;->iniDistance(Landroid/content/Context;)V

    .line 202
    invoke-virtual {p0}, Llt/noframe/gpsfarmguide/models/LineModel;->doCalculations()V

    return-void
.end method

.method public setPoints(Ljava/util/List;)V
    .locals 0
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Lcom/google/android/gms/maps/model/LatLng;",
            ">;)V"
        }
    .end annotation

    .line 127
    iput-object p1, p0, Llt/noframe/gpsfarmguide/models/LineModel;->points:Ljava/util/List;

    return-void
.end method

.method public undo()V
    .locals 3

    .line 103
    iget-object v0, p0, Llt/noframe/gpsfarmguide/models/LineModel;->originator:Llt/noframe/gpsfarmguide/undo/Originator;

    iget-object v1, p0, Llt/noframe/gpsfarmguide/models/LineModel;->caretaker:Llt/noframe/gpsfarmguide/undo/Caretaker;

    invoke-virtual {v1}, Llt/noframe/gpsfarmguide/undo/Caretaker;->getLastMemento()Llt/noframe/gpsfarmguide/undo/AbstractMemento;

    move-result-object v1

    invoke-virtual {v0, v1}, Llt/noframe/gpsfarmguide/undo/Originator;->restoreFromMemento(Llt/noframe/gpsfarmguide/undo/AbstractMemento;)V

    .line 106
    iget-object v0, p0, Llt/noframe/gpsfarmguide/models/LineModel;->polyline:Lcom/google/android/gms/maps/model/Polyline;

    if-eqz v0, :cond_0

    .line 107
    invoke-virtual {v0}, Lcom/google/android/gms/maps/model/Polyline;->remove()V

    .line 108
    :cond_0
    invoke-virtual {p0}, Llt/noframe/gpsfarmguide/models/LineModel;->removeMarkers()V

    .line 110
    iget-object v0, p0, Llt/noframe/gpsfarmguide/models/LineModel;->originator:Llt/noframe/gpsfarmguide/undo/Originator;

    invoke-virtual {v0}, Llt/noframe/gpsfarmguide/undo/Originator;->getState()Ljava/util/List;

    move-result-object v0

    iput-object v0, p0, Llt/noframe/gpsfarmguide/models/LineModel;->points:Ljava/util/List;

    .line 111
    iget-object v0, p0, Llt/noframe/gpsfarmguide/models/LineModel;->points:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-lez v0, :cond_1

    .line 112
    iget-object v0, p0, Llt/noframe/gpsfarmguide/models/LineModel;->points:Ljava/util/List;

    invoke-static {v0}, Llt/noframe/gpsfarmguide/utils/Drawing;->drawPolyline(Ljava/util/List;)Lcom/google/android/gms/maps/model/Polyline;

    move-result-object v0

    iput-object v0, p0, Llt/noframe/gpsfarmguide/models/LineModel;->polyline:Lcom/google/android/gms/maps/model/Polyline;

    .line 113
    iget-object v0, p0, Llt/noframe/gpsfarmguide/models/LineModel;->points:Ljava/util/List;

    const/4 v1, 0x0

    invoke-static {v0, v1}, Llt/noframe/gpsfarmguide/utils/Drawing;->addMarkers(Ljava/util/List;Z)Ljava/util/List;

    move-result-object v0

    iput-object v0, p0, Llt/noframe/gpsfarmguide/models/LineModel;->markers:Ljava/util/List;

    .line 115
    :cond_1
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "marker size: "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v1, p0, Llt/noframe/gpsfarmguide/models/LineModel;->markers:Ljava/util/List;

    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    const-string v1, "sizes"

    invoke-static {v1, v0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 116
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "points size: "

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v2, p0, Llt/noframe/gpsfarmguide/models/LineModel;->points:Ljava/util/List;

    invoke-interface {v2}, Ljava/util/List;->size()I

    move-result v2

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v1, v0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 117
    invoke-static {}, Llt/noframe/gpsfarmguide/utils/Calculations;->getInstance()Llt/noframe/gpsfarmguide/utils/Calculations;

    move-result-object v0

    invoke-virtual {v0}, Llt/noframe/gpsfarmguide/utils/Calculations;->doDistanceCalculations()V

    return-void
.end method

.method public unmarkMeasure()V
    .locals 2

    .line 85
    iget-object v0, p0, Llt/noframe/gpsfarmguide/models/LineModel;->polyline:Lcom/google/android/gms/maps/model/Polyline;

    if-eqz v0, :cond_0

    const/high16 v1, 0x40400000    # 3.0f

    .line 86
    invoke-virtual {v0, v1}, Lcom/google/android/gms/maps/model/Polyline;->setWidth(F)V

    :cond_0
    return-void
.end method
